﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using DataAccessLayer;
using System.Data;

namespace Bussiness
{
    public class ChiPhiInAnBussiness
    {
        public DataTable danhsach()
        {
            ChiPhiSanPhamRepository cp = new ChiPhiSanPhamRepository();

            DataTable kq = new DataTable();
            kq = cp.danhsachchiphiinan();
            return kq;

        }
        public DataTable danhsach_spTheoTen(string s)
        {
            ChiPhiSanPhamRepository cp = new ChiPhiSanPhamRepository();

            DataTable kq = new DataTable();
            kq = cp.danhsachchiphiinan_spTheoTen(s);
            return kq;

        }
        public void capnhat(ChiPhiInAnEnt cpia)
        {
            ChiPhiSanPhamRepository cp = new ChiPhiSanPhamRepository();
            cp.capnhat(cpia);

        }
    }
}
